//
//  BDGeneralModel.m
//  BadBoy
//
//  Created by wen on 2017/9/6.
//  Copyright © 2017年 com.8xiong. All rights reserved.
//

#import "BDGeneralModel.h"

@implementation BDGeneralModel

- (instancetype)init{
    if (self = [super init]) {
        _accessoryType = BDGeneralCellAccessoryTypeNone;
        _keyboardType = BDGeneralCellKeyboardTypeDefault;
        _mode = BDGeneralCellModeDefault;
        _imageType = BDGeneralCellImageTypeImageName;
        _hasSeparator = YES;
    }
    return self;
}

- (BDGeneralModel *(^)(NSString *identifier))identifierEqual{
    return ^id (NSString *identifier) {
        self.identifier = identifier;
        return self;
    };
}

- (BDGeneralModel *(^)(id image))imageEqual{
    return ^id (id image) {
        self.image = image;
        return self;
    };
}

- (BDGeneralModel *(^)(NSString *))placeImageEqual{
    return ^id (NSString *placeImage) {
        self.placeImage = placeImage;
        return self;
    };
}

- (BDGeneralModel *(^)(NSString *))titleEqual{
    return ^id (NSString *title) {
        self.title = title;
        return self;
    };
}

- (BDGeneralModel *(^)(NSString *))laberStringEqual{
    return ^id (NSString *laberString) {
        self.laberString = laberString;
        return self;
    };
}

- (BDGeneralModel *(^)(NSString *))subTitleEqual{
    return ^id (NSString *subTitle) {
        self.subTitle = subTitle;
        return self;
    };
}

- (BDGeneralModel *(^)(NSString *))placeHolderEqual{
    return ^id (NSString *placeHolder) {
        self.placeHolder = placeHolder;
        return self;
    };
}

- (BDGeneralModel *(^)(NSString *))aimageStringEqual{
    return ^id (NSString *aimage) {
        self.aimageString = aimage;
        return self;
    };
}

- (BDGeneralModel *(^)(NSString *))textFieldTextEqual{
    return ^id (NSString *textFieldText) {
        self.textFieldText = textFieldText;
        return self;
    };
}

- (BDGeneralModel *(^)(BDGeneralCellAccessoryType))accessoryTypeTypeEqual{
    return ^id (BDGeneralCellAccessoryType accessoryType) {
        self.accessoryType = accessoryType;
        return self;
    };
}

- (BDGeneralModel *(^)(BDGeneralCellKeyboardType))keyboardTypeEqual{
    return ^id (BDGeneralCellKeyboardType keyboardType) {
        self.keyboardType = keyboardType;
        return self;
    };
}

- (BDGeneralModel *(^)(BDGeneralCellImageType))imageTypeEqual{
    return ^id (BDGeneralCellImageType imageType) {
        self.imageType = imageType;
        return self;
    };
}

- (BDGeneralModel *(^)(BOOL))switchValueEqual{
    return ^id (BOOL switchValue) {
        self.switchValue = switchValue;
        return self;
    };
}

- (BDGeneralModel *(^)(BOOL hasSeparator))hasSeparatorEuqal{
    return ^id (BOOL hasSeparator) {
        self.hasSeparator = hasSeparator;
        return self;
    };
}

- (BDGeneralModel *(^)(BDGeneralCellMode))modeEqual{
    return ^id (BDGeneralCellMode mode) {
        self.mode = mode;
        return self;
    };
}

- (BDGeneralModel *(^)(id))extensionEqual {
    return ^id (id extension) {
        self.extension = extension;
        return self;
    };
}
@end
